<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleEdit" />
<link
	href="${staticPath}/lib/datetimepicker/0.0.11/css/bootstrap-datetimepicker.min.css"
	rel="stylesheet" type="text/css">
<link href="${staticPath}/lib/chosen/1.1.0/chosen.min.css"
	rel="stylesheet" type="text/css">
<script type="text/javascript">
	$(document).ready(
			function() {
				$("#key").focus();
				$("#associatedForm")
						.validate(
								{
									submitHandler : function(form) {
										Oosp_Loading('正在提交，请稍等...');
										form.submit();
									},
									errorContainer : "#messageBox",
									errorPlacement : function(error, element) {
										$("#messageBox").text("输入有误，请先更正。");
										if (element.is(":checkbox")
												|| element.is(":radio")
												|| element.parent().is(
														".input-append")) {
											error.appendTo(element.parent()
													.parent());
										} else {
											error.insertAfter(element);
										}
									}
								});
				$("#saveAssociated").click(function() {
					$("#associatedForm").submit();
				});
			});
</script>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">
							新建合同意向审批流程 <a class="btn btn-default btn-sm pull-right"
								role="button" href="javascript:void(0)" onclick="history.go(-1)">返回</a>
						</h3>
					</div>
					<div class="panel-body">
						<form action="${contextPath}/biz/contract/assrecord/create"
							class="form-horizontal" id="associatedForm" method="post">
							<div class="form-group">
								<label for="element4" class="col-sm-2 control-label">区域:</label>
								<div class="col-sm-3">
									<ossp:select dictType="city" id="areaId" name="areaId" defaultSelected="${ass.areaId }"
										class_="form-control required"></ossp:select>
								</div>
								<div class="col-sm-3 pull-right">
									<ossp:select dictType="city" id="storeId" name="storeId" defaultSelected="${ass.storeId }"
										class_="form-control required"></ossp:select>
								</div>
								 <label class="col-sm-2 control-label pull-right">门店:</label>

							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">楼层:</label>
								<div class="col-sm-3">
									<ossp:select dictType="city" id="floorId" name="floorId" defaultSelected="${ass.floorId }"
										class_="form-control required"></ossp:select>
								</div>
								<div class="col-sm-3 pull-right">
									<input type="text" class="form-control required"
															id="buildArea" name="buildArea"
															value="${ass.buildArea}" placeholder="建筑面积">
								</div>
								<label class="col-sm-2 control-label pull-right">建筑面积:</label>
								<div class="col-sm-3 pull-right">
								</div>
							</div>
							
							<c:forEach items="${ass.negAssbrands }" var="negAssbrands" varStatus="i">
								<div class="form-group">
									<label class="col-sm-2 control-label">品牌名称${i.count }:</label> 
									<div class="col-sm-3">
										<input type="text" class="form-control required"
														id="brandName" name="brandName"
														value="${negAssbrands.brandName }" placeholder="品牌名称">
									</div>
									<div class="col-sm-3 pull-right">
										<input type="text" class="form-control required"
																id="commodityCate" name="commodityCate"
																value="${negAssbrands.commodityCate }" placeholder="经营品类">
									</div>
									<label class="col-sm-2 control-label pull-right">经营品类${i.count }:</label>
									<div class="col-sm-3 pull-right">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label"> 铺位${i.count }:</label> 
									<div class="col-sm-3">
										<input type="text" class="form-control required"
														id="shop" name="shop"
														value="${negAssbrands.negAssshopsList }" placeholder="品牌名称">
									</div>
								</div>
							</c:forEach>
							
							<div class="form-group">
								<label class="col-sm-2 control-label">合同开始时间:</label>
								<div class="col-sm-4">
									<div class="input-group date o-a-form-datetime" data-date=""
										data-date-format="yyyy-mm-dd">
										<input class="form-control required" type="text"
											id="startDate" name="startDate" value="<fmt:formatDate value="${ass.startDate}"
															pattern="yyyy-MM-dd" />"/> <span
											class="input-group-addon"><i
											class="glyphicon glyphicon-remove"></i></span> <span
											class="input-group-addon"><span
											class="glyphicon glyphicon-calendar"></span></span>
									</div>
								</div>
								<label class="col-sm-2 control-label">合同结束时间:</label>
								<div class="col-sm-4">
									<div class="input-group date o-a-form-datetime" data-date=""
										data-date-format="yyyy-mm-dd">
										<input class="form-control required" type="text" id="endDate"
											name="endDate"
											value="<fmt:formatDate value="${ass.endDate}"
															pattern="yyyy-MM-dd" />" />
										<span class="input-group-addon"><i
											class="glyphicon glyphicon-remove"></i></span> <span
											class="input-group-addon"><span
											class="glyphicon glyphicon-calendar"></span></span>
									</div>
								</div>
							</div>

							<div class="tab-content">
								<div class="tab-pane active" id="home">
									<table class="table table-bordered">
										<tbody>
											<tr>
												<td class="text-center" style="width: 20%"><strong>项&nbsp&nbsp&nbsp&nbsp目</strong></td>
												<td class="text-center" style="width: 30%"><strong>原始合同条款项</strong></td>
												<td class="text-center" style="width: 50%"><strong>变更合同条款项</strong></td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">面积分摊系数</td>
												<td class="text-center" style="width: 30%">${assrecords.areaCoefficient}</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="areaCoefficient" name="areaCoefficient"
															value="${ass.areaCoefficient}">
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">收银方式</td>
												<td class="text-center" style="width: 30%"><ossp:value dictType="CONTRACT_CHCKOUTYPE" key="${assrecords.checkoutType}"/></td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<ossp:radio dictType="CONTRACT_CHCKOUTYPE"
															id="checkoutType" name="checkoutType"></ossp:radio>
													</div>
												</td>
											</tr>
											<!-- 			  							<tr> -->
											<!-- 			  								<td class="text-center" style="width: 20%">结算方式</td> -->
											<%-- 					  						<td class="text-center" style="width: 30%">${assrecords.settlementType}</td> --%>
											<!-- 					  						<td class="text-center" style="width: 50%"> -->
											<!-- 					  							<div class="col-sm-8" > -->
											<%-- 													<ossp:select dictType="city" id="settlementType" name="settlementType" class_="form-control required"></ossp:select> --%>
											<%-- 													<ossp:radio dictType="" id="settlementType" name="settlementType"></ossp:radio> --%>
											<!-- 												</div> -->
											<!-- 					  						</td> -->
											<!-- 			  							</tr> -->
											<tr>
												<td class="text-center" style="width: 20%">结算周期</td>
												<td class="text-center" style="width: 30%"><ossp:value dictType="city" key="${assrecords.settlementCycle}"/></td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<ossp:select dictType="city" id="settlementCycle" defaultSelected="${assrecords.settlementCycle }"
															name="settlementCycle" class_="form-control required"></ossp:select>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">会员卡折率类型</td>
												<td class="text-center" style="width: 30%"><ossp:value dictType="ONTRACT_MEMBER_RATE_" key="${assrecords.cardDiscountType}" /></td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<ossp:radio dictType="ONTRACT_MEMBER_RATE_"
															id="cardDiscountType" name="cardDiscountType"></ossp:radio>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">金卡折率</td>
												<td class="text-center" style="width: 30%">${assrecords.gcardDiscount}折</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="gcardDiscount" name="gcardDiscount"
															value="${ass.areaCoefficient}" placeholder="输入折率">
													</div> <label class="col-sm-2 control-label">折</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">金卡折上折率</td>
												<td class="text-center" style="width: 30%">${assrecords.gcardDiscount2}折</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="gcardDiscount2" name="gcardDiscount2"
															value="${ass.areaCoefficient}" placeholder="输入折率">
													</div> <label class="col-sm-2 control-label">折</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">普卡折率</td>
												<td class="text-center" style="width: 30%">${assrecords.ocardDiscount}折</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="ocardDiscount" name="ocardDiscount"
															value="${ass.areaCoefficient}" placeholder="输入折率">
													</div> <label class="col-sm-2 control-label">折</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">普卡折上折率</td>
												<td class="text-center" style="width: 30%">${assrecords.ocardDiscount2}折</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="ocardDiscount2" name="ocardDiscount2"
															value="${ass.areaCoefficient}" placeholder="输入折率">
													</div> <label class="col-sm-2 control-label">折</label>
												</td>
											</tr>
											<!-- 			  							<tr> -->
											<!-- 			  								<td class="text-center" style="width: 20%">合作方式</td> -->
											<%-- 					  						<td class="text-center" style="width: 30%">${assrecords.businessType}</td> --%>
											<!-- 					  						<td class="text-center" style="width: 50%"> -->
											<!-- 					  							<div class="col-sm-8" > -->
											<%-- 													<ossp:select dictType="city" id="businessType" name="businessType" class_="form-control required"></ossp:select> --%>
											<!-- 												</div> -->
											<!-- 					  						</td> -->
											<!-- 			  							</tr> -->
											<tr>
												<td class="text-center" style="width: 20%">付款期限</td>
												<td class="text-center" style="width: 30%"><ossp:value dictType="city" key="${assrecords.paymentperiod}"/></td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<ossp:select dictType="city" id="paymentPeriod" defaultSelected="${assrecords.paymentperiod}"
															name="paymentPeriod" class_="form-control required"></ossp:select>
													</div>
												</td>
											</tr>
											<!-- 			  							<tr> -->
											<!-- 			  								<td class="text-center" style="width: 20%">付款方式</td> -->
											<%-- 					  						<td class="text-center" style="width: 30%">${assrecords.paymentType}</td> --%>
											<!-- 					  						<td class="text-center" style="width: 50%"> -->
											<!-- 					  							<div class="col-sm-8" > -->
											<%-- 													<ossp:select dictType="city" id="paymentType" name="paymentType" class_="form-control required"></ossp:select> --%>
											<!-- 												</div> -->
											<!-- 					  						</td> -->
											<!-- 			  							</tr> -->
											<tr>
												<td class="text-center" style="width: 20%">品牌推广服务费</td>
												<td class="text-center" style="width: 30%">${assrecords.brandPopFees}(元)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="brandPopFees" name="brandPopFees"
															value="${ass.areaCoefficient}" placeholder="输入服务费">
													</div> <label class="col-sm-2 control-label">(元)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">仓储费</td>
												<td class="text-center" style="width: 30%">${assrecords.storageFees}(元/月)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="storageFees" name="storageFees"
															value="${ass.areaCoefficient}" placeholder="输入仓储费">
													</div> <label for="name" class="col-sm-3 control-label">(元/月)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">配送费</td>
												<td class="text-center" style="width: 30%">${assrecords.transportFees}(元/月)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="transportFees" name="transportFees"
															value="${ass.areaCoefficient}" placeholder="输入配送费">
													</div> <label for="name" class="col-sm-3 control-label">(元/月)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">设施服务费单价</td>
												<td class="text-center" style="width: 30%">${assrecords.facilitiesUnitFees}(元/m²/月)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="facilitiesUnitFees" name="facilitiesUnitFees"
															value="${ass.facilitiesUnitFees}"
															placeholder="输入设施服务费单价">
													</div> <label class="col-sm-4 control-label">(元/m²/月)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">设施服务费</td>
												<td class="text-center" style="width: 30%">${assrecords.facilitiesFees}(元/月)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="facilitiesFees" name="facilitiesFees"
															value="${ass.facilitiesFees}"
															placeholder="输入设施服务费">
													</div> <label class="col-sm-3 control-label">(元/月)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">信息服务费</td>
												<td class="text-center" style="width: 30%">${assrecords.infoFees}(元/年)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="infoFees" name="infoFees"
															value="${ass.infoFees}" placeholder="输入信息服务费">
													</div> <label class="col-sm-3 control-label">(元/年)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">平效</td>
												<td class="text-center" style="width: 30%">${assrecords.benefit}(元/m²/月)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="benefit" name="benefit" value="${ass.benefit}"
															placeholder="输入平效">
													</div> <label class="col-sm-4 control-label">(元/m²/月)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">质保金</td>
												<td class="text-center" style="width: 30%">${assrecords.warrantyFees}(元)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="warrantyFees" name="warrantyFees"
															value="${ass.warrantyFees}" placeholder="输入平效">
													</div> <label class="col-sm-1 control-label">(元)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">综合服务费/单位</td>
												<td class="text-center" style="width: 30%">${assrecords.serviceFees}/<ossp:value dictType="city" key="${assrecords.serviceFeesUnit}"></ossp:value></td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-6">
														<input type="text" class="form-control required"
															id="serviceFees" name="serviceFees"
															value="${ass.serviceFees}" placeholder="输入综合服务费">
													</div>
													<div class="col-sm-6">
														<ossp:select dictType="city" id="serviceFeesUnit" defaultSelected="${assrecords.serviceFeesUnit}"
															name="serviceFeesUnit" class_="form-control required"></ossp:select>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">工衣</td>
												<td class="text-center" style="width: 30%">
													<ossp:value dictType="WORK_CLOTHES" key="${assrecords.workClothes}"></ossp:value></td>
												<td class="text-center" style="width: 50%">
													<div class="">
														<ossp:radio dictType="WORK_CLOTHES" id="workClothes"
															name="workClothes"></ossp:radio>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">增加用电</td>
												<td class="text-center" style="width: 30%">
													<ossp:value dictType="SUPPLIER_POWER" key="${assrecords.isUndertakeElec}"></ossp:value></td>
												<td class="text-center" style="width: 50%">
													<div class="">
														<ossp:radio dictType="SUPPLIER_POWER" id="isUndertakeElec"
															name="isUndertakeElec"></ossp:radio>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">品牌形象维护费</td>
												<td class="text-center" style="width: 30%">${assrecords.imageFees}&nbsp;(元/年)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="imageFees" name="imageFees"
															value="${ass.imageFees}" placeholder="输入设施服务费">
													</div> <label for="name" class="col-sm-3 control-label">(元/年)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">月均(目标)销售额</td>
												<td class="text-center" style="width: 30%">${assrecords.salesAmount}&nbsp;(元)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="salesAmount" name="salesAmount"
															value="${ass.salesAmount}" placeholder="输入目标销售额">
													</div> <label class="col-sm-1 control-label">(元)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">税票类型/税率？？？？</td>
												<td class="text-center" style="width: 30%">
													${assrecords.taxRate}</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-6">
														<ossp:select dictType="city" id="taxType" name="taxType"
															class_="form-control required"></ossp:select>
													</div>
													<div class="col-sm-6">
														<input type="text" class="form-control required"
															id="taxRate" name="taxRate" value="${ass.taxRate}"
															placeholder="输入税率">
													</div>

												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">导购/导购数量</td>
												<td class="text-center" style="width: 30%">
													<ossp:value dictType="GUIDE_TYPE" key="${assrecords.guideType}"/>/人数:${assrecords.guideAmount}人</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-6">
														<ossp:select dictType="GUIDE_TYPE" id="guideType" defaultSelected="${ass.guideType }"
															name="guideType" class_="form-control required"></ossp:select>
													</div>
													<div class="col-sm-4">
														<input type="text" class="form-control required"
															id="guideAmount" name="guideAmount" value="${ass.guideAmount}" placeholder="导购数量">
													</div> <label class="col-sm-1 control-label">(人)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">会员卡积分服务费</td>
												<td class="text-center" style="width: 30%">
													${assrecords.cardScoreFees}(元/月/店)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="cardScoreFees" name="cardScoreFees"
															value="${ass.cardScoreFees}" placeholder="会员卡积分服务费">
													</div> <label class="col-sm-4 control-label">(元/月/店)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">促销服务费</td>
												<td class="text-center" style="width: 30%">
													${assrecords.promotionFees}(元/月/店)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="promotionFees" name="promotionFees" value="${ass.promotionFees}" placeholder="促销服务费">
													</div> <label class="col-sm-4 control-label">(元/月/店)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">会员卡服务费</td>
												<td class="text-center" style="width: 30%">
													${assrecords.cardFees}(元/月)</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="cardFees" name="cardFees" value="${ass.cardFees}" placeholder="会员卡服务费">
													</div> <label class="col-sm-4 control-label">(元/月)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">刷卡手续费</td>
												<td class="text-center" style="width: 30%">
													${assrecords.swipeFees}%</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="swipeFees" name="swipeFees" value="${ass.swipeFees}" placeholder="刷卡手续费">
													</div> <label class="col-sm-4 control-label">(%)</label>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">提货凭证服务费/单位</td>
												<td class="text-center" style="width: 30%">${assrecords.voucherFees}/<ossp:value dictType="VOUCHER_FEES_UNIT" key="${assrecords.voucherFeesUnit}"></ossp:value></td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-6">
														<input type="text" class="form-control required"
															id="voucherFees" name="voucherFees" value="${ass.voucherFees}" placeholder="提货凭证服务费">
													</div>
													<div class="col-sm-6">
														<ossp:radio dictType="VOUCHER_FEES_UNIT" defaultChecked="${ass.voucherFeesUnit}"
															id="voucherFeesUnit" name="voucherFeesUnit"></ossp:radio>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">是否比高:</td>
												<td class="text-center" style="width: 30%">
													<ossp:value dictType="COMPARE_HIGH" key="${assrecords.negAssbaseitems.isCompare}"></ossp:value></td>
												<td class="text-center" style="width: 50%">
													<div class="">
														<ossp:radio dictType="COMPARE_HIGH" id="isCompare" defaultChecked="${ass.negAssbaseitems.isCompare}"
															name="isCompare"></ossp:radio>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">是否保底:</td>
												<td class="text-center" style="width: 30%">
													<ossp:value dictType="DEFEND_BASE" key="${assrecords.negAssbaseitems.isGuarantee}"></ossp:value></td>
												<td class="text-center" style="width: 50%">
													<div class="">
														<ossp:radio dictType="DEFEND_BASE" id="isGuarantee" defaultChecked="${ass.negAssbaseitems.isGuarantee}"
															name="isGuarantee"></ossp:radio>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">保底形式:</td>
												<td class="text-center" style="width: 30%">
													<ossp:value dictType="GUARANTEE_TYPE" key="${assrecords.negAssbaseitems.guaranteeType}"></ossp:value></td>
												<td class="text-center" style="width: 50%">
													<div class="">
														<ossp:radio dictType="GUARANTEE_TYPE" id="guaranteeType" defaultChecked="${ass.negAssbaseitems.guaranteeType}"
															name="guaranteeType"></ossp:radio>
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">保底金额:</td>
												<td class="text-center" style="width: 30%">${assrecords.negAssbaseitems.guaranteeAmount }</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="guaranteeAmount" name="guaranteeAmount" value="${ass.negAssbaseitems.guaranteeAmount}" placeholder="保底金额">
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">保底利润:</td>
												<td class="text-center" style="width: 30%">${assrecords.negAssbaseitems.guaranteeProfit }</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="guaranteeProfit" name="guaranteeProfit" value="${ass.negAssbaseitems.guaranteeProfit}" placeholder="保底利润">
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">基扣/超扣:</td>
												<td class="text-center" style="width: 30%">${assrecords.negAssbaseitems.baseOrExcess }</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="baseOrExcess" name="baseOrExcess" value="${ass.negAssbaseitems.baseOrExcess}" placeholder="基扣/超扣">
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">扣款下限:</td>
												<td class="text-center" style="width: 30%">${assrecords.negAssbaseitems.lower }</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="lower" name="lower" value="${ass.negAssbaseitems.lower}" placeholder="扣款下限">
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">扣款上限:</td>
												<td class="text-center" style="width: 30%">${assrecords.negAssbaseitems.upper }</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="upper" name="upper" value="${ass.negAssbaseitems.upper}" placeholder="扣款上限">
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">租金支付日:</td>
												<td class="text-center" style="width: 30%">${assrecords.negAssbaseitems.payDate }</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="payDate" name="payDate" value="${ass.negAssbaseitems.payDate}" placeholder="租金支付日">
													</div>
												</td>
											</tr>
											<tr>
												<td class="text-center" style="width: 20%">扣率:</td>
												<td class="text-center" style="width: 30%">${assrecords.negAssbaseitems.deductRate }</td>
												<td class="text-center" style="width: 50%">
													<div class="col-sm-8">
														<input type="text" class="form-control required"
															id="deductRate" name="deductRate" value="${ass.negAssbaseitems.deductRate}" placeholder="扣率">
													</div>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">付款方式补充:</label>
								<div class="col-sm-10">
									<textarea class="form-control required" rows="1"
										id="signReasons" name="paymentTypeAdd">${ass.paymentTypeAdd}</textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">备注:</label>
								<div class="col-sm-10">
									<textarea class="form-control required" rows="1"
										id="signReasons" name="comments">${ass.comments}</textarea>
								</div>
							</div>
						</form>
					</div>

				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<input type="hidden" value="${ass.id}" id="assid">
						<input class="btn btn-primary " id="affirm" type="button" value="确认条款" /> 
						<input class="btn btn-primary " id="saveAssociated" type="button" value="修改条款" /> 
						<input class="btn btn-primary " id="stop" type="button" value="终止洽谈" />
						<input class="btn btn-default " type="button" value="返 回" onclick="history.go(-1)" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<script
		src="${staticPath}/lib/datetimepicker/0.0.11/js/bootstrap-datetimepicker.min.js"
		type="text/javascript"></script>
	<script
		src="${staticPath}/lib/datetimepicker/0.0.11/js/locales/bootstrap-datetimepicker.zh-CN.js"
		type="text/javascript"></script>
	<script src="${staticPath}/lib/chosen/1.1.0/chosen.jquery.js"
		type="text/javascript"></script>
	<script src="${staticPath}/js/ossp-jquery-chosen.js"
		type="text/javascript"></script>
	<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js"
		type="text/javascript"></script>
	<script type="text/javascript">
	
		$("#affirm").click(function() {
			if(confirm("确认条款后将不可再修改")){
				window.location='${contextPath}/biz/contract/assrecord/updateStatus?id='+$("#assid").val()+'&status=2';
			}
		});
		
		$("#stop").click(function() {
			if(confirm("确定要终止洽谈吗?")){
				window.location='${contextPath}/biz/contract/assrecord/updateStatus?id='+$("#assid").val()+'&status=1';
			}
		});
	
		$(".o-a-form-datetime").datetimepicker({
			language : 'zh-CN',
			autoclose : true,
			pickerPosition : "bottom-left"
		});
		$(document)
				.ready(
						function() {
							$(".chosen-select").chosen({});
							//货币格式化
							$('[data-accounting]')
									.each(
											function() {
												var $this = $(this);
												if ($this
														.attr("data-accounting-precision")
														&& "" != $this
																.attr("data-accounting-precision")) {
													$this
															.html(accounting
																	.formatMoney(
																			$this
																					.attr("data-accounting"),
																			"¥ ",
																			$this
																					.attr("data-accounting-precision") * 1));
												} else {
													$this
															.html(accounting
																	.formatMoney(
																			$this
																					.attr("data-accounting"),
																			"¥ "));
												}
											});
							;
						});
	</script>
</body>
</html>